//
// Created by tacom on 2022/8/19.
//
#include "iostream"
#include "../include/ImgReadShow.h"
#include "opencv2/opencv.hpp"

void ImgReadShow::doWork(const std::string& fileName) {
    cv::Mat img = cv::imread(fileName, 1);
//    cv::Mat img = cv::Mat::zeros(200, 200, CV_8UC1);
    cv::imshow("img", img);
    cv::waitKey(0);
}

void doWorkFunction(const std::string& fileName) {
    std::cout << "received string form python: "
              << fileName << std::endl;
    cv::Mat img = cv::imread(fileName, 1);
//    cv::Mat img = cv::Mat::zeros(200, 200, CV_8UC1);
    cv::imshow("img", img);
    cv::waitKey(0);
}
